Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding transient storage maps with TLOAD/TSTORE implementation #2801

Open
wants to merge 2 commits into
base: fmacleal/addition_transient_storage_opcodes
Choose a base branch
from

Conversation

fmacleal
Copy link
Contributor

This PR adds the basic implementation of the TLOAD/TSTORE opcodes with some DSL contracts tests. Still work in progress and more validations need to be added.

Description

Motivation and Context

How Has This Been Tested?

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • Tests for the changes have been added (for bug fixes / features)
  • Requires Activation Code (Hard Fork)
  • Other information:

@fmacleal fmacleal requested review from a team as code owners October 11, 2024 12:24
@fmacleal fmacleal force-pushed the fmacleal/adding_transient_storage_maps branch from 6142056 to 7149f88 Compare October 14, 2024 10:32
@fmacleal fmacleal force-pushed the fmacleal/addition_transient_storage_opcodes branch from d6dc804 to 8892bf3 Compare October 14, 2024 10:46
@fmacleal fmacleal force-pushed the fmacleal/adding_transient_storage_maps branch 3 times, most recently from 743e9e8 to 3ce63a0 Compare October 20, 2024 17:51
@fmacleal fmacleal force-pushed the fmacleal/adding_transient_storage_maps branch from c32eb3d to 01c2a45 Compare October 21, 2024 13:55
- Adding scratch from the DSL tests and contracts for tests

- The tests are still failing, I am investigating to find the root cause

- Adding more logic to the map structures

- Finishing test validation for basic scenarios of TLOAD/TSTORE

- Now we need to add more scenarios to validate that the memory isn't shared and
erased in the end of the transaction.
- In order to get advantage from the whole flow of tracking, rollback and commits already present in the MutableRepository.
We refactored a bit the logic of transient storage, now it's simpler.

- The task isn't done yet, more tests needs to be added to validate that this is working properly.
@fmacleal fmacleal force-pushed the fmacleal/adding_transient_storage_maps branch from 01c2a45 to 81cef20 Compare October 22, 2024 21:18
Copy link

sonarcloud bot commented Oct 22, 2024

Quality Gate Failed Quality Gate failed

Failed conditions
2 New Blocker Issues (required ≤ 0)

See analysis details on SonarCloud

Catch issues before they fail your Quality Gate with our IDE extension SonarLint

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant